<?php
	session_start();
	include("functions.php");
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Cambodia Job</title>
		<link href="css/bootstrap.css" rel="stylesheet"/>
		<link href="css/bootstrap-responsive.css" rel="stylesheet"/>
		<link href='css/custom.css' rel='stylesheet'/>
		<script>
			window.onload=function(){
				document.querySelector("#nav li:first-child").classList.add("active");
			}
		</script>
	</head>
	<body>
		<div class="container">
			<?php 
				if(!isset($_SESSION["userid"])){
					getHeader();
				}
				else{
			?>
				<div class='row-fluid row-header'>
				<div class='span3 text-center'>
				<a href='/cambodiajob/index.php'>
				<img src='/cambodiajob/img/logo_kh.png' alt='Khschools.com' />
				</a></div>
				<div class='span9'>
				<ul class='nav nav-pills pull-right' id='nav'>
					<li><a href='/cambodiajob/index.php' class='text-white'>Home</a></li>
					<li><a href='/cambodiajob/about.php' class='text-white'>About Us</a></li>
					<li><a href='/cambodiajob/#' class='text-white'>Contact Us</a></li>
					<li><a href='/cambodiajob/employer' class='text-white'>Profile</a></li>
					<li><a href="logout.php" class="text-white" id="btnlogout">Logout</a></li>
					</ul></div></div>
			<?php
				}
			?>
		</div>
		<div class='container' style='margin-top: 18px;'>
		<div class='row-fluid'>
			<div class='span6'>
			<h4 class='text-success'>Search Jobs</h4>
			<form name='frm' method='post' class='form-inline'>
					<input type='text' placeholder='keyword'/>
					<select>
						<option>All</option>
						<option>Phnom Penh</option>
						<option>Kampot</option>
					</select>
					<a href='#' class='btn btn-primary'>Search</a>
			</form>
			</div>
			<div class='span6'>
				Other content
			</div>
		</div>
		<h3 class='text-info'>Browse Jobs By Category</h3><hr/>
			<div class='row-fluid'>
				<div class='span9'>
					<div class='row-fluid'>
						<?php getCategory(); ?>
					</div>
				</div>
				<div class='span3'>
					Advertising
				</div>
			</div>
			<h3 class='text-info'>Browse Jobs By Location</h3><hr/>
			<div class='row-fluid'>
				<div class='span9'>
					<div class='row-fluid'>
						<?php getLocation(); ?>
					</div>
				</div>
				<div class='span3'>
					Advertising
				</div>
			</div>
		</div>
	</body>
</html>